

import http from '../utils/http.js'

// 列表
export function list(params) {
	return http.get('/jeecg-boot/app/questionnaire/list', {
		params
	})
}

export function queryById(params) {
	return http.get('/jeecg-boot/app/questionnaire/queryById', {
		params
	})
}

// 根据id查询
export function questionnaire(params) {
	return http.get('/jeecg-boot/app/questionnaire/queryZbQuestionnaireQuestionsByMainId', {params})
}

// 提交回答
export function addAnswer(data) {
	return http.post('/jeecg-boot/app/zbAnswer/add', data)
}